<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Detalle de Productos</title>
    </head>
    <body bgcolor="#FFFF99">
        
     <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="84" bgcolor="#FF0000"><img src="img/carritorx8[1].jpg" width="84" height="77" /></td>
            <td width="716" bgcolor="#FF0000" align="center"><h1 style="color:#FFFFFF">Carrito de Compras</h1></td>
        </tr>
        <tr align="center">
            <td colspan="2">&nbsp;</td>
        </tr>
        <tr align="center">
            <td colspan="2">
            <h4><a href="ConsProd">Consultar Productos</a> | <a href="AgrCarrito1">Agregar al Carrito</a> | <a href="login.htm">Salir</a></h4></td>
        </tr>
        <tr>
            <td colspan="2">&nbsp;</td>
        </tr>
        <tr>
            <td colspan="2"><table width="100%" border="0">
            <tr bgcolor="#FF6600" style="color: #FFFFFF">
                <td width="68%"><h4>Nombre</h4></td>
                <td width="16%" align="right" valign="top"><h4>Stock</h4></td>
                <td width="16%" align="right" valign="top"><h4>Precio</h4></td>
            </tr>
            <c:forEach items="${productos}" var="producto">
               <tr bgcolor="#FFFFFF">
                   <td><c:out value="${producto.nombreProducto}" /></td>
                   <td align="right" valign="top"><c:out value="${producto.stock}" /></td>
                   <td align="right" valign="top">$<c:out value="${producto.precio}" /></td>
               </tr>
            </c:forEach>
         
            </table></td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;</td>
            </tr>
    </table>

 </body>
</html>
